Title: Functions.php date function issue
Last modified: December 23, 2020

---

# Functions.php date function issue

 *  Resolved [nextechnics](https://wordpress.org/support/users/nextechnics/)
 * (@nextechnics)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/functions-php-date-function-issue/)
 * In woocommerce i created a function to calculate when the store is not open (
   mondays) and it worked very well. I have installed your plugin and enabled your
   cache, but the script doesn’t work well. The script remains on monday, even though
   it is another day of the week. If I clear the cache in your plugin it works. 
   To solve the problem should I delete the functions.php file or other files from
   the cache? Thanks

Viewing 1 replies (of 1 total)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/functions-php-date-function-issue/#post-13842005)
 * [@nextechnics](https://wordpress.org/support/users/nextechnics/)
 * I’m afraid you cannot add a file or function to exclude from caching, In this
   case you’ll have to manually purge the cache.
 * Thanks,
    Harshad

Viewing 1 replies (of 1 total)

The topic ‘Functions.php date function issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [date](https://wordpress.org/support/topic-tag/date/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/functions-php-date-function-issue/#post-13842005)
 * Status: resolved