Post by justcurious » Wed Sep 30, 2015 3:30 am

On a couple of occasions I've experienced some strange behaviour from VQMod. There must be some reason for it, but I'm stumped:

In the vqcache folder I'm getting two files file (for example):
  • vq2-vqmod_vqcache_vq2-admin_controller_catalog_product.php
  • vq2-admin_controller_catalog_product.php
So it looks like the vqcache file has been vqmodded!

On this occasion, the change I wanted to make has made it into in vq2-admin_controller_catalog_product.php, but I'm getting an error in the in the vqmod/logs folder saying that it can't find the search string which has already been replaced in vq2-admin_controller_catalog_product.php. So it seems that the vqmod xml files are being processed twice.

I've checked that none of the vqmod XML files reference any vq2-vqmod_vqcache . . . files.

Does anyone know what might be causing this?

Google Product Feed - Get your products into Google Shopping. Includes a bulk update facility.
Backup Pro - Backup (on demand or scheduled), Restore and Clone your store.
Freestyle Box - Add multiple information boxes on multiple pages of your store. Includes optional "Code Mode".
View my other extensions


User avatar
Active Member

Posts

Joined
Sat Dec 24, 2011 4:36 pm
Location - UK

Post by IP_CAM » Wed Sep 30, 2015 4:49 am

probably, because you have two different VqMod's, with Functions, both accessing the i.E. product.tpl file, in order to replace/add/modify some of the existing content.

When the Server browses trough your VqMod-Section, starting by a and ending by z, it will work itselfs trough the files, without a check, if multiple routines are been done, onto one SOURCE FILE, by multiple VqMod Files or not. So, it possibly produces multiple (end-output-)template-Parts/Sections (in the vqcache-section!). (double/tripple+ -Server-Work!) It then call's 'em, one after one, to finally build the END HTTP OUTPUT File Content out of the Task-MATCHING Ones.. Strictly Alphabethically, according to the Task (the Link called). If no MATCHING VqMod Cache Files exist, or if they are outdated, the Server will create a new SET OF SUCH FILES, as soon as the next Task for this WHATEVER PAGE/PART comes in.

If, by example, two MOD's access the SAME ANCHOR/TAG/WHATEVER (you want to call it) on a Source File, to use it, to add, before, instead of, after, it's own content, or even JUST remove something, the possibillity, that the DEFAULT ANCHOR/TAG/WHATEVER does not longer exist, in exactly this form, after an 'earlier called' VqMod did it's own Job on the Source, is a FACT. Because of this, some VqMod's suddenly produce strange errors, when another seemengly simple VqMod is added to the system.

The only way to fix this, would be, to combine ALL the VqMod Content of VqMod's, ACCESSING THE SAME FILE, like a CATEGORY or PRODUCT PAGE, into one single VqMod. It not only speeds up general Performance, it also makes it easier to modify or change something, without taking the risk to screw up, unaware of the consequences, in another Place, because of this.

Good Luck
Ernie
openshop.li/shop/
PS. My personal understanding of this, it may not be representative! :D

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by justcurious » Wed Sep 30, 2015 2:13 pm

Thanks Ernie, but that's not my normal experience of VQMod.

I have many clients where I've had to adapt the vqmod file because the search string I'm using has already been modified by someone elses extension. In those cases, I don't get a vqmodded vqcache file, and that's why I've raised the issue here.

Kind regards

Google Product Feed - Get your products into Google Shopping. Includes a bulk update facility.
Backup Pro - Backup (on demand or scheduled), Restore and Clone your store.
Freestyle Box - Add multiple information boxes on multiple pages of your store. Includes optional "Code Mode".
View my other extensions


User avatar
Active Member

Posts

Joined
Sat Dec 24, 2011 4:36 pm
Location - UK
Who is online

Users browsing this forum: Ahrefs [Bot] and 18 guests