PECL wincache >= 1.0.0
wincache_refresh_if_changed - Refreshes the cache entries for the cached files
Code Examples

Example #1 A wincache_refresh_if_changed example

WinCache performs regular checks on the cached files to ensure that if any file has changed then the corresponding entry in the cache is updated. By default this check is performed every 30 seconds. If, for example, a PHP script updates another PHP script where the application's configuration settings are stored, then it may happen that after the configuration settings have been saved to a file, the application is still using old settings for some time until the cache is refreshed. In those cases it may be preferrable to refresh the cache right after the file has been changed. The following example shows how this can be done.

PHP Version: