Devam Ediyor

519963 Cakephp function help

The below function clears the cakephp cache folder. After the function below I need to pause for 10 seconds to allow time for the files to recreate then chmod the files in this folder back to 777. How can I add this code to the below function to do this

Folder is /tmp/cache

function clearCache() {

if (!empty($this->data['Auction']['id'])) {

Cache::delete('auction_view_' . $this->data['Auction']['id']);

Cache::delete('auction_' . $this->data['Auction']['id']);


Cache::delete('last_bid_' . $this->data['Auction']['id']);



Beceriler: Her şey Kabul, CakePHP, PHP

Daha fazlasını gör: cakephp help, PHP cakePHP, cakephp, auction function, code function, delete function, php help function, php delete tmp files, function time, recreate files, tmp folder, auction cakephp, time cakephp, cakephp auction, pause seconds, data function, delete function php, cakephp php, function delete php, cakephp time, php delete function

İşveren Hakkında:
( 3 değerlendirme ) United States

Proje NO: #2265899