Created
May 19, 2016 13:03
-
-
Save viruthagiri/93ca4322752027eccaee158859541c55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//delete dummy image cache | |
$to_be_deleted = array(); | |
for($i=1; $i<=20; $i++) { | |
$to_be_deleted[] = "dummy_a".$i."_jpg"; | |
} | |
for($i=1; $i<=18; $i++) { | |
$to_be_deleted[] = "dummy_hotels".$i."_jpg"; | |
} | |
for($i=1; $i<=19; $i++) { | |
$to_be_deleted[] = "dummy_restaurants".$i."_jpg"; | |
} | |
foreach($to_be_deleted as $value) { | |
delete_transient($value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment