CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • custom php is being cached somewhere I can't find?!
Pages: [1]

Author Topic: custom php is being cached somewhere I can't find?!  (Read 637 times)

minbori

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 2
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 2.5.24
  • MySQL version: 5.5.37
  • PHP version: 5.3.29
custom php is being cached somewhere I can't find?!
November 10, 2014, 02:50:05 am
Today I needed to make a few changes to a custom hook that's been working fine for some time.  However, my changes are not being read -- the previous version of the code is running no matter what I do.  It seems that the php is being cached somewhere and I can't for the life of me figure out where!

What I've done so far:

-- checked that my custom resource directories are all pointing to the right place
-- flushed the Joomla cache
-- flushed my browser cache
-- flushed the Civicrm template cache (deleted everything in media/template_c) and hit the link
http://www.mysite.com/index.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1

Is there some caching being done in the database that I'm not aware of???

Please help, tearing my hair out here!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: custom php is being cached somewhere I can't find?!
November 10, 2014, 03:39:54 am
No, PHP code is not cached. How do you know the custom code is being executed? Perhaps rename the custom file and see what happens.

Or give us more details about what file and what hook etc.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

minbori

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 2
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 2.5.24
  • MySQL version: 5.5.37
  • PHP version: 5.3.29
Re: custom php is being cached somewhere I can't find?!
November 10, 2014, 03:41:24 am
Hi Hershel, thanks for the response.  I did try that -- first I renamed the file, then I deleted it completely.  The custom hook code still runs; I can see its output in the Civicrm log files.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: custom php is being cached somewhere I can't find?!
November 10, 2014, 03:42:46 am
Must simply do more debugging. Is there another copy of it somewhere? What file is it? Where is it? Try testing if the default file is running or not. Check if someone edited the default file.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

minbori

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 2
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 2.5.24
  • MySQL version: 5.5.37
  • PHP version: 5.3.29
Re: custom php is being cached somewhere I can't find?!
November 10, 2014, 03:45:33 am
Thanks for the confirmation that PHP code isn't cached; I thought that was the case but I wasn't completely sure.

I'm digging around now to see if I can locate any other copy anywhere else, but this is just a customHooks.php file that implements exactly one hook.  As far as I know there are no other customizations outside this custom folder.

Thanks again!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: custom php is being cached somewhere I can't find?!
November 10, 2014, 04:40:32 am
Give us more details, like the name and location of the file and what hook it implements and what proof you have it's running etc.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

minbori

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 2
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 2.5.24
  • MySQL version: 5.5.37
  • PHP version: 5.3.29
Re: custom php is being cached somewhere I can't find?!
November 11, 2014, 01:51:28 am
Hershel, I really appreciate your responses and I want to apologize for being a huge moron.

I finally searched the entire codebase of the website I'm working on and found another undocumented change by someone else.  The sinister thing was the changed file included a copy and paste of my original override file (including my custom log messages!) so it totally looked like a previous version was cached.

But I very much appreciate the heads up about the PHP code never being cached, that kept me from wasting a lot of time troubleshooting caching mechanisms and focusing on the code.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: custom php is being cached somewhere I can't find?!
November 11, 2014, 03:28:43 am
Quote from: Hershel on November 10, 2014, 03:42:46 am
Check if someone edited the default file.

glücklich zu helfen. ;)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

minbori

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 2
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 2.5.24
  • MySQL version: 5.5.37
  • PHP version: 5.3.29
Re: custom php is being cached somewhere I can't find?!
November 11, 2014, 04:06:09 am
Ich bin auch froh, dass ich geholfen worden  ;D

Aber schrecklich war's, dass er keine default Datei geaendert hat, aber eine neue eingestellt. Deswegen musste ich so lang suchen.  Pfui.  ::)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • custom php is being cached somewhere I can't find?!

This forum was archived on 2017-11-26.