Closed (fixed)
Project:
Optimizely
Version:
7.x-2.14
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Jul 2014 at 02:29 UTC
Updated:
5 Aug 2014 at 20:47 UTC
Jump to comment: Most recent
When disabling a project on the Project Listing page by unchecking its checkbox, the cache is not cleared.
In file optimizely.admin.inc, function optimizely_ajax_enable(), variable $target_paths is assigned a value on line 598. The value of that variable is subsequently used to clear the cache on line 638 on the call to optimizely_refresh_cache(). However, $target_paths is not initialized at that point when a project is being disabled via the checkbox.
I confirmed this by stepping through the code with a debugger.
Comments
Comment #1
DeeZone commentedUpdated the title of the issue as it's the checkbox functionality in the project listing that is not triggering the cache clearing. When updating project details / enabling from the project form that related paths clear cache.
Comment #2
DeeZone commentedSee 7.x-2.x_Bug_fixes-2.15 branch for solution. Fix will be in 7.x-2.15 release.
Comment #3
DeeZone commentedComment #4
DeeZone commented