0

In controller I can use clearCache(); but it deletes whole /cache/views/ directory. Is there any way to delete only the current pageid cache? Thanks!

1 Answer 1

1

You should read the docblock / documentation on it

function clearCache($params = null, $type = 'views', $ext = '.php') {}

it states for $params:

@param string|array $params As String name to be searched for deletion, if name is a directory all files in
 *   directory will be deleted. If array, names to be searched for deletion. If clearCache() without params,
 *   all files in app/tmp/cache/views will be deleted
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.