Loading


Advertisement:

Recent Posts

Pages: [1] 2 3 ... 10
1
Development / Re: Improving the items views display, opinions needed.
« Last post by Web-Media on Today at 02:24:57 am »
Yours . But...
 the biggest challange is to buffer the sql insert (expensive query) for some seconds or minutes and do a multiple insert with a single query
Not worth the pain of +1  on a single mysql query .
Imagine other 9 plugins doing insert simple query on each page view.

https://github.com/osclass/Osclass/issues/1060

2
Ok. My question was clear and is related to that mostViews method.
Now all views must be calculated for all items , and then sorted for that function to return something.
Also, in order to show total views for an item, some rows must be sumed each time in db.

I asked if  a new table implemented by +1 for each visit would be more efficient for these 2 functionalities.
3
Development / Re: Improving the items views display, opinions needed.
« Last post by Web-Media on Today at 12:57:16 am »
Osclass version . Can track item views by day ,week,month. Interval , Etc
4
Finally, an opinion.
Agreed. But my question was which of the 2 options would be more resource efficient.

And I'm not talking about plugins, the core is my interest.
5
Development / Re: Improving the items views display, opinions needed.
« Last post by Web-Media on January 17, 2018, 11:54:00 pm »
First
mostViewed method  from item model should belog to itemStats model
Second
 Tracking  views should be optional and decided by admin.there is a waste of resources  just updating a simple counter.
There should be a dedicated plugin where more things can be tracked or let the  G .analitics do the job
External server ,  javascript .. etc..
This is from item controller
Code: [Select]
if(!osc_is_admin_user_logged_in() && !($item['fk_i_user_id']!='' && $item['fk_i_user_id']==osc_logged_user_id())) {

require_once(osc_lib_path() . 'osclass/user-agents.php');

foreach($user_agents as $ua) {

if(preg_match('|'.$ua.'|', Params::getServerParam('HTTP_USER_AGENT'))) {

$mStats = new ItemStats();

$mStats->increase('i_num_views', $item['pk_i_id']);

break;

}

}

}



6
I have the same yellow and my pages are indexed just fine.

Maybe it is because the site is for datings.
7
General help / Re: Multilanguage translation
« Last post by amjaradat06 on January 17, 2018, 10:41:51 pm »
Hey, Any update on this, please?
8
General help / Re: indexing site pages in google webmasters tools in search console
« Last post by ThoXs on January 17, 2018, 10:02:53 pm »
This, I always do it.
As seen in the above image, linking to indexing links remains yellow as if the pages were not taken for indexing and are not green.
It does not understand why and what would be the reason.
9
Click index and render in webmaster tools instead of just index, in that table from your picture, after you enter the url and choose index this page only, and enter chaptca.
10
General help / Re: indexing site pages in google webmasters tools in search console
« Last post by ThoXs on January 17, 2018, 09:20:01 pm »
I do not understand what you mean by hitting the index.
Pages: [1] 2 3 ... 10