function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pankaj Pandey 22Pankaj Pandey 22 

refresh visualforcepage change to public site

Hi All,

Recently I have made some changes to my Visualforce page picklist value. New picklist value is getting displayed on the preview section of the visual force page but same is not reflecting on the public site where this page is used.

Do I need to perform any other action in order to push new code changes of visual force page to the public site?

Thanks,
Pankaj Kr Pandey 
GarryPGarryP
There can be multiple issues-
1. VisualforcePage uses cache, hence old value are beng dsplayed from cache. try using cache=false tag for VF page attribute
2. #1 should resolve the issue if not  the controller to be initialised again, so  add follwoing String to your VF page
&cacheControl='+system.now().format('yyyyMMddHHmmssFFF')
to make it unique for each page view.
3. Check if you areusing the Javascript and those variable are still using the old values from mergeField. You may have to refresh the script tag so that new values are fetch from the controller